package com.heima.feign.client;

import com.heima.feign.config.DefaultFeignConfiguration;
import com.heima.feign.config.WmUserFeignClientFallbackFactory;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.entity.WmNews;
import com.heima.model.wemedia.entity.WmUser;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-wemedia",configuration = DefaultFeignConfiguration.class,fallbackFactory = WmUserFeignClientFallbackFactory.class)
public interface WmUserFeignClient {



    @PostMapping(path = "/api/v1/user/save")
   ResponseResult save(@RequestBody WmUser wmUser);

}
